export const checkUserPrivacyProtocol = (fun1: any, fun2: any) => {
  if (!(uni as any).getPrivacySetting) {
    fun2()
  }
  ;(uni as any).getPrivacySetting({
    success: (res: any) => {
      if (res.needAuthorization) {
        fun1()
      } else {
        fun2()
      }
    },
  })
}
